<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
    <class name="cn.firstsoft.modules.docex.domain.DocexLable" table="docex_lable">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">DOCEX_LABLE_ID_SEQ</param>
            </generator>
        </id>
        <many-to-one name="user" class="org.springside.modules.security.domain.User" fetch="select">
            <column name="user_id" />
        </many-to-one>
        <property name="name" type="string">
            <column name="name" length="50" />
        </property>
       <set name="docexFiledetail" table="docex_lable_filedetail" lazy="true" inverse="false" cascade="save-update" batch-size="5">
            <key>
                <column name="lable_id" not-null="true"/>
            </key>
            <many-to-many class="cn.firstsoft.modules.docex.domain.DocexFiledetail" column="filedetail_id" outer-join="auto"/>
        </set>
      
    </class>
</hibernate-mapping>
